const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 将token值作为公共的访问属性放出
  token: state => state.user.token,
  // 将子模块中的对象中的名称开放出来
  name: state => state.user.userInfo.username,
  // 映射userid
  userId: state => state.user.userInfo.userId,
  // 建立用户头像的映射
  staffPhoto: state => state.user.userInfo.staffPhoto
}
export default getters
